import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p002 from './p002';
export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// todo
	const no = fd.data.node.querySelector<HTMLSelectElement>('[data-id="equip_type_no"]');
	console.log(no.value);
	const name = await nodejs<{ data: Array<{}> }>('device-management-ygh/zj-000010/s003', { equip_type_no: no.value });

	console.log(name);
	render(fd, name.data[0], p002, 'p002', 'inner');
	const n3 = fd.data.node.querySelector<HTMLSelectElement>('[data-id="equipment_kind_no"]');
	n3.removeAttribute('disabled');
}
